{% extends 'base.html' %}
{% load static %}

{% block title %}Scores{% endblock %}


{% block head %}
    <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/3.12.2/less.min.js" integrity="sha512-rCgfeoOQxpi926f8I0zdBVUY9q/2SKXqrdIy23yEPuvWvJ8/jwDqhQ0eJJhS9L8ySZsmbEQp3LCgPTiaAk5WVw==" crossorigin="anonymous"></script> -->
    <link rel="stylesheet" href="{% static 'stud_app/css/scores.css' %}">
{% endblock %}
    
    
{% block content %}

<div class="container">
<div class="row">
<div class="col-2"></div>
<div class="col-8">

<form action="" method="post">
    {% csrf_token %}
    <div class="table-container">
        <table> 
            <thead>
                <tr>
                    <th>Course</th>
                    <th>Exam</th>
                    <th>Submitted on</th>
                    <th>Scores</th>
    
                </tr>
            </thead>
            <tbody>
                {% for exam_attended in exams_attended %}
                <tr>
                    <td>{{ exam_attended.exam_fk.course_fk.course_name }}</td>
                    <td>{{ exam_attended.exam_fk.exam_name }}</td>
                    <td>{{ exam_attended.submitted_on }}</td>
                    <td>{{ exam_attended.total_marks }}</td>

                </tr>
                {% endfor %}
    
            </tbody>
        </table>
    </div>
</form>           
    
</div>
</div>
</div>

{% endblock %}